package com.Cychat.commons.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * Auther: 刘俊  <br/>
 * Date: 2025-10-31:上午 10:43  <br/>
 * Description: 商品评价表
 */
@Data
@TableName("review")
public class Review {
    @Schema(description = "评论ID")
    @TableId(value = "review_id", type = IdType.AUTO)
    private Integer reviewId;

    @Schema(description = "商品ID")
    private Integer productId;

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "商品评级（1-5分）")
    private Integer grade;

    @Schema(description = "评论内容")
    private String description;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "修改时间")
    private Date updateTime;
}
